from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    (r'^$', 'pms.task_management.views.auth.login_page'),
    (r'^p/$', 'pms.task_management.views.project.projects'),
    (r'^trend/$', 'pms.task_management.views.trend.list'),
    (r'^p/(?P<project_id>\d{1,10})/', include('pms.task_management.urls')),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root':'D:/local/svn/pms/static/'}),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/login', 'pms.task_management.views.auth.login_page'),
    (r'^auth/login', 'pms.task_management.views.auth.login_handler'),
    (r'^auth/logout', 'pms.task_management.views.auth.logout_handler'),

)
